[IA64] copy_from/to_guest
authorawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Mon, 14 Aug 2006 20:21:21 +0000 (14:21 -0600)
committerawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Mon, 14 Aug 2006 20:21:21 +0000 (14:21 -0600)
commitad81630fe1dfca00b4a1ce7e992ef65eff0e6543
treec1ddb94553aae78c83d42c27486ec80a818183e8
parente9b5dc88982b241b7c3c51a344b0aaf3f313e0d5
[IA64] copy_from/to_guest

This patch fixes the copy_from/to_guest problem.
As Akio reported, modularised netback causes dom0's down.

The following process is happened in gnttab_transfer()@
xen/common/grant_table.c:

  gnttab_transfer()
   => steal_page()
     => assign_domain_page_cmpxchg_rel()
       => domain_page_flush()
         => domain_flush_vtlb_all()  // all TLBs are flushed
   ...
   => __copy_to_guest_offset()               // always fail to copy

The embedded netback module has no problem because it uses TR pinned
data.  But modularised one is out of TR. So copy_from/to_guest issue
must be solved in order to modularise drivers.

Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
linux-2.6-xen-sparse/arch/ia64/xen/hypervisor.c
linux-2.6-xen-sparse/include/asm-ia64/hypercall.h
xen/arch/ia64/xen/hypercall.c
xen/arch/ia64/xen/vcpu.c
xen/include/asm-ia64/domain.h
xen/include/asm-ia64/uaccess.h